<?php

namespace App\Admin\Exports\Sheet;

use App\Models\Virtual\VirtualWord;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithHeadings;
use Maatwebsite\Excel\Concerns\WithTitle;
class VirtualWordSheet implements FromCollection, WithHeadings, WithTitle
{
    public function collection()
    {
        return VirtualWord::query()->select([
            'id', 'virtual_id', 'type', 'time', 'click_learn_id',
        ])->get();
    }

    public function headings(): array
    {
        return [
            '情境学习卡点编号', '情境学习编号', '情景类型', '卡点时间','内容/资源编号'
        ];
    }
    public function title(): string
    {
        return '情境学习-卡点';
    }
}
